package com.example.fish.controller.study;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class MethodController {

    @RequestMapping(value = "/method",method = RequestMethod.GET)
    public String method1(){
        return "study/get";
    }

    @RequestMapping(value = "/method",method = RequestMethod.POST)
    public String method2(){
        return "study/post";
    }

    @RequestMapping(value = "/method",method = RequestMethod.PUT)
    public String method3() {
        return "study/put";
    }
    @RequestMapping(value = "/method",method = RequestMethod.DELETE)
    public String method4(){
        return "study/delete";
    }

}
